package ws.db.writetable;

import java.util.ArrayList;

import ws.db.ColumnAttrPair;
import ws.db.execsql.ExecSQL;
import ws.db.sql.InsertSQLUseArray;
import ws.db.sql.SQLInterface;
import ws.db.sql.UpdateSQLUseArray;

public class UpdateObject extends WriteObject {
	
	public UpdateObject(String m_table,String m_where,Object obj,
						ArrayList<ColumnAttrPair> columnAttrPair){
		super.table = m_table;
		super.where = m_where;
		super.obj = obj;
		super.columnAttrPairs = columnAttrPair;
	}
	
	
	@Override
	protected SQLInterface constructSQL(String m_table, String m_where, String[] columns,
			String[] values) {
		// TODO Auto-generated method stub
		return new UpdateSQLUseArray(m_table,m_where,columns,values);
	
	}

}
